<ion-view view-title="转让发布" class="productmanager_publish">
	<ion-content>
		<div class="list">
			<li class="item positive-bg padding-0">
				<div class="light-bg margin-left-10-my padding-10">
					宝贝基本信息
				</div>
			</li>
			<div class="item item-input item-select" data-tap-disabled="true" style="font-size:16px;padding:0 30px 0 15px;height: 44px;line-height: 44px;">
				<div class="input-label">转让类型</div>
				<div class="input-value" ng-click="doSelectTransfer()">{{transferModel.transfer_type_select.name}}</div>
		    </div>
			<li class="item item-input">
				<span class="input-label">
				商品名称
			</span>
				<input type="text" placeholder="请输入商品名称" ng-model="transferModel.name" />
			</li>
			<li class="item item-input">
				<span class="input-label">
				商品编号
			</span>
				<input type="text" placeholder="请输入商品编号" ng-model="transferModel.bn" />
			</li>
			<li class="item item-borderless font-small-my padding-0" style="padding-right: 10px;">
				<span class="right-zhang font-gray-my">如没有指定的商品编号，此处可不填，由系统自动生成</span>
			</li>
			<li class="item item-input">
				<span class="input-label">商品关键词</span>
				<textarea rows="3" placeholder="请输入商品关键词" ng-model="transferModel.keywords" style="padding-right: 20px;"></textarea>
			</li>
			<li class="item item-borderless font-small-my padding-0" style="padding-right: 10px;">
				<span class="right-zhang  font-gray-my">多个关键词用"|"隔开</span>
			</li>

			<li class="item item-input">
				<span class="input-label">商品简介</span>
				<textarea rows="5" style="padding-right:30px;" placeholder="请输入商品简介" ng-model="transferModel.brief"></textarea>
				<span class="assertive aglinRightBottom_zhang padding-left">{{textLength}}/70</span>
			</li>
			<li class="item item-input">
				<span class="input-label">商品图片</span>
				<!--<div class="add input-file" on-tap="doShowFile()">
					<span class="icon ion-plus"></span>
				</div>
				<input id="upfilebutton" type="file" multiple="multiple" accept="image/*" onchange="angular.element(this).scope().upload(this)" style="display: none;" />-->
				<a class="add input-file" href="javascript:void(0);"><span class="icon ion-plus" on-tap="addStoreImg()"></span></a>
			</li>
			<li class="item item-borderless font-small-my padding-0" style="padding-right: 10px;">
				<span class="right-zhang  font-gray-my">800*800，大小不能超过1M</span>
			</li>
			<li class="item padding-0"><!--循环显示已经上传的图片-->
				<div ng-repeat="img in transferModel.uploads track by $index">
					<div class="imageShow">
						<i class="icon ion-close-circled delImage" on-tap="ondelete($index)"></i>
						<img ng-src='{{img.url}}' on-tap="openFileActSheet($index)"/>
					</div>
					<div ng-class="{'clear_zhang':($index+1)%4==0}"></div>
				</div>
			</li>
			<!--宝贝属性-->
			<li class="item item-borderless positive-bg padding-0">
				<div class="light-bg margin-left-10-my padding-10">
					宝贝属性
				</div>
			</li>
			<li class="item item-input" ng-repeat="property in propertys">
                <span class="input-label">
                   	{{property.name}}
                </span>
                <input type="radio" id="radio[{{$index}}]" value="{{property.id}}" style="display: none;"/>
                <input type="text" placeholder="请输入商品{{property.name}}" ng-model="proArray[$index]" />
            </li>
			<!--宝贝属性-->

			<li class="item item-input">
				<span class="input-label">
				销售价(元)
			</span>
				<input type="text" name="price" ng-keyup="clearNoNum(transferModel,'price')" placeholder="请输入销售价" ng-model="transferModel.price" />
			</li>
			<li class="item item-input">
				<span class="input-label">
				市场价(元)
			</span>
				<input type="text" name="market_price" ng-keyup="clearNoNum(transferModel,'market_price')" placeholder="请输入市场价" ng-model="transferModel.market_price" />
			</li>
			<li class="item item-input">
				<span class="input-label">
				货号
			</span>
				<input type="text" placeholder="请输入商品货号" ng-model="transferModel.product_bn" />
			</li>
			<li class="item item-borderless font-small-my padding-0" style="padding-right: 10px;">
				<span class="right-zhang font-gray-my">如没有指定的货号，此处可不填，由系统自动生成</span>
			</li>
			<li class="item item-input">
				<span class="input-label">
				重量(kg)
			</span>
				<input type="text" placeholder="请输入商品重量" ng-model="transferModel.weight" />
			</li>
			<li class="item item-toggle">
				立即上架
				<label class="toggle toggle-positive">
             <input type="checkbox"  ng-model="transferModel.is_marketable">
             <div class="track">
               <div class="handle"></div>
             </div>
           </label>
			</li>
			<div class="item item-input item-select" data-tap-disabled="true" style="font-size:16px;padding:0 30px 0 15px;height: 44px;line-height: 44px;">
				<div class="input-label">自定义分类</div>
				<div class="input-value" ng-click="doSelectCustom()">{{transferModel.cat_list_select.cat_name}}</div>
		    </div>
		</div>

		<div class="button-bar padding">
			<button class="button  button-assertive" on-tap="transfer_cancel()">取消</button>
			<button class="button  button-positive col-offset-10" on-tap="transfer_sava()">保存</button>
		</div>

	</ion-content>
</ion-view>